import ZChart from './chart'
import ZUpload from './upload'
import ZBox from './box'
import ZTitle from './title'

import AddBtn from './buttons/add-button'
import SearchBtn from './buttons/search-button'
import DelBtn from './buttons/del-button'
import ExportBtn from './buttons/export-button'
import button from './buttons/button'

import ZSlideText from './text/slide-text'

const components = [
  ZChart,
  ZUpload,
  ZBox,
  ZTitle,
  ZSlideText,

  AddBtn,
  SearchBtn,
  DelBtn,
  ExportBtn,
  button
]
const install = function (Vue, opts = {}) {
  components.map(component => {
    Vue.component(component.name, component)
  })
}
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
}
const exportsResult = {
  version: '1.0.0',
  install
}
Object.assign(exportsResult, components)

export default exportsResult
